<template>
  <div class="mengli-config">
    <mengli-ip-config v-if="hasRouteAuth('system:ipSeries:read')" v-bind="$attrs"/>
    <mengli-repo-config v-if="hasRouteAuth('system:mengliRepo:read')" v-bind="$attrs"/>
  </div>
</template>

<script>
import mengliRepoConfig from './module/mengliRepoConfig';
import mengliIpConfig from './module/mengliIpConfig';
import { hasRouteAuth } from '@/utils/permission';

export default {
  name: 'MengliConfig',
  components: {
    mengliRepoConfig,
    mengliIpConfig
  },
  props: {
    hideTitle: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    hasRouteAuth
  }
};
</script>

<style lang="scss">
.mengli-config {
  .btn-container {
    display: flex;
    justify-content: center;
  }
  .mengli-tab-main {
    display: flex;
    padding-left: 13px;
    align-items: center;
    .main-title {
      font-size: 14px;
      font-weight: 600;
      line-height: 14px;
      color: #141C3D;
      // margin-right: 47px;
      width: 100px;
    }
  }
  .mengli-set {
    margin-bottom: 20px;
    .btn {
      width:120px;
      padding:7px 0px;
      background:#fff;
      color:#406EFF;
    }
  }
  .overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dropdown-wrap {
    margin-top: -24px;
    margin-right: 15px;
    padding: 0;
  }
  .dropdown-item-btn{
    width: 80px;
    text-align: center;
  }
}
</style>
